package com.runze.base.web;

/**
 * Action模板
 * @author 王润泽
 * @创建时间 2017年2月15日 下午4:31:37
 */
public class BaseController {
	
	public Response success() { return new Response(); }
	public Response success(Object data) { return new Response(data); }
	public Response failure(String msg) { return new Response(msg, 500); }
	public Response failure(String msg, int code) { return new Response(msg, code); }
	public Response forbiden() { return null; }
	
}